﻿@model ManageReportVer1.Models.LogOnViewModel
@{
    ViewBag.Title = "Nhập liệu";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section featured {
    <section class="featured">
        <div class="content-wrapper">
            <hgroup class="title">
                <h1>@ViewBag.Title</h1>
            </hgroup>
        </div>   
        <hr>
    </section>
}

<script src="@Url.Content("~/Content/SecurityGuard/scripts/jquery-1.6.1.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Content/SecurityGuard/scripts/modernizr-1.7.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Content/SecurityGuard/scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Content/SecurityGuard/scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm("Login", "Account"))

{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)
    <fieldset >
        <legend>Người dùng đăng nhập</legend>
        <div class="editor-label">
            @Html.LabelFor(model => model.UserName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.UserName)
            @Html.ValidationMessageFor(model => model.UserName)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Password)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Password)
            @Html.ValidationMessageFor(model => model.Password)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Captcha)
            <a href="@Url.Action("LogIn")"><img alt="Captcha" src="@Url.Action("CaptchaImage")" style="" /></a>
        </div>
        <div class="editor-field"> 
            @Html.EditorFor(model => model.Captcha)
            @Html.ValidationMessageFor(model => model.Captcha)
        </div>
        <div class="editor-label1">
            @Html.EditorFor(model => model.RememberMe)
            @Html.ValidationMessageFor(model => model.RememberMe)
            @Html.LabelFor(model => model.RememberMe)  
        </div>
        <p>
            <input type="submit" value="Đăng nhập" />
        </p>
     @*   @if (Model.EnablePasswordReset)
        {
            <p>@Html.ActionLink("Quên mật khẩu", "ForgotPassword")</p>
        }*@
    </fieldset>
}
<script type="text/javascript">
    $(function () {
        $("#UserName").focus();
    });
</script>